//
//  MK_NetWorking.h
//  LoveBeen
//
//  Created by 杨尚达 on 2017/5/14.
//  Copyright © 2017年 杨尚达. All rights reserved.
//

#import <Foundation/Foundation.h>


///网络工具类
@interface MK_NetWorking : NSObject

@property(nonatomic,assign)BOOL isConnection;

///单例方法
+(instancetype _Nullable )sharedNetWorking;

///普通的GET HTTP请求
- (NSURLSessionDataTask *_Nullable)Miku_GET:(NSString *_Nullable)URLString
                        parameters:(id _Nullable )parameters
                          progress:(void (^_Nullable)(NSProgress * _Nonnull progress))downloadProgress
                           success:(void (^_Nullable)(NSURLSessionDataTask * _Nonnull dataTask, id _Nullable responseObject))success
                           failure:(void (^_Nullable)(NSURLSessionDataTask * _Nullable dataTask, NSError * _Nonnull error))failure;
///普通的POST HTTP请求
- (NSURLSessionDataTask *)Miku_POST:(NSString *)URLString
                         parameters:(id)parameters
                           progress:(void (^)(NSProgress * _Nonnull progress))uploadProgress
                            success:(void (^)(NSURLSessionDataTask * _Nonnull task, id _Nullable responseObject))success
                            failure:(void (^)(NSURLSessionDataTask * _Nullable task, NSError * _Nonnull error))failure
;



@end
